<form method="post" name="frm_SelRail" onSubmit="return false;" action="{$apm.baseurl}search/{$form_act}">
		<p class="searchAttTxt01">※3ヵ所まで選択できます。</p>

		{* 都道府県毎にループ *}
		{foreach from=$Mapping key=prefCd item=pref}

		<!-- prefBlock -->
		<div class="prefBlock">
			<div class="h2Block">
				<h2><span>{$pref.PrefName}</span><label class="allSelect"></h2>
			</div>
						<!-- selectCategoryAnchor -->
						<div id="selectCategoryAnchor">
							<!-- innerBlock -->
							<div class="innerBlock01">
								<div class="innerBlock02">
									<ul>
	{* アンカー *}
	{foreach from=$pref.EnsenKbnList item=ensenKbn}
										<li><a href="#{$prefCd}{$ensenKbn.EnsenKbn}">{$ensenKbn.EnsenKbnName}</a></li>
	{/foreach}
									</ul>
								</div>
							</div>
							<!-- /innerBlock -->
						</div>

	{* 沿線区分毎にループ *}
	{foreach from=$pref.EnsenKbnList item=ensenKbn}
						<!-- selectDetailBlock01 -->
						<div id="{$prefCd}{$ensenKbn.EnsenKbn}" class="selectDetailBlock01">
							<p class="title">{$ensenKbn.EnsenKbnName}</p>
							<!-- innerBlock01 -->
							<div class="innerBlock01">
								<!-- innerBlock02 -->
								<div class="innerBlock02">

		{* 沿線毎にループ *}
		{foreach from=$ensenKbn.RailList item=rail name=railLoop}
				{if $smarty.foreach.railLoop.iteration % 3 == 1}
					{if $smarty.foreach.railLoop.iteration + 2 >= $smarty.foreach.railLoop.total}
									<ul class="last">
					{else}
									<ul>
					{/if}
				{/if}

				{if $rail.TENPO_COUNT == 0}
					{assign var="disabled" value=" disabled"}
				{else}
					{assign var="disabled" value=""}
				{/if}
										<li>
											<label><input type="checkbox" id="selectRail{$rail.T57_ENSEN_SHIKUCHOUSON_CD}" name="RailCd[]" value="{$rail.T57_ENSEN_SHIKUCHOUSON_CD}" {$rail.checked}>{$rail.ENSEN_NAME}</label>
										</li>

			{if $smarty.foreach.railLoop.iteration % 3 == 0 || $smarty.foreach.railLoop.last}
									</ul>
			{/if}

		{/foreach}
								</div>
								<!-- /innerBlock02 -->
							</div>
							<!-- /innerBlock01 -->
						</div>
						<!-- /selectDetailBlock01 -->
	{/foreach}

		</div>
		<!-- /prefBlock -->
{/foreach}

		<!-- searchBtnBlock02 -->
		<div id="searchBtnBlock02">
			<div class="btnBlock">
				<p><a href="javascript:SelEnsen(3);"><img src="/images/search/common/btn_select_station.jpg" alt="駅を選択" width="158" height="35" class="rollImg" /></a></p>
			</div>
		</div>
		<!-- /searchBtnBlock02 -->

	<div id="hiddenval">
	{$hiddenTag}
	</div>
</form>
